<?php

#[('__unset', '删除类中无权删除的成员')]
class User
{
    private $name = 'hflxhn';
    public function start()
    {
        echo "my name is hflxhn <br>";
    }

    public function __unset($a)
    {
        echo "您无权删除{$a}";
    }
}

$obj = new User();
unset($obj->name);
